package com.ssps.back.platform.service.Impl;

import com.ssps.back.platform.service.CouponService;
import com.ssps.entity.Coupon;
import com.ssps.mapper.CouponMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author li
 * @time 2020/07/23 15:54:20
 */

@Service
public class CouponServiceImpl implements CouponService {

    @Autowired
    CouponMapper couponMapper;

    @Override
    public List<Coupon> couponFindAll() {
        List<Coupon> couponList=couponMapper.selectByExample(null);
        return couponList;
    }

    @Override
    public void couponSave(Coupon coupon) {
        couponMapper.insert(coupon);
    }
}
